package leeon.bbsbrower.views;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {
	
	

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
				
		//添加各种视图
		layout.addStandaloneView(LoginView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(MainView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(BlockView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(FriendView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(MailView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(AllBoardView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(MyBoardView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(BoardListView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(DocView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(ConView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(MailListView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(MailConView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(UserListView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(UserConView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(AllMsgView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(SendMsgView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(FindUserView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(SendMailView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.addStandaloneView(SendDocView.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
	}

}
